package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;
public class TorpedoSubmarine extends SeaObject implements EnemyScore{
    public TorpedoSubmarine(){
        super(64,20);
    }
    public void move(){
        setX(getX()+getSpeed());
    }


    /** 重写*/
    public ImageIcon getImage(){
        return Images.torpesubm;
    }

    /** 重写接口方法 */
    public int getScore() {
        return 40;   //鱼雷得40
    }
}
